package com.bakar.servlets;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class BakarServlet extends HttpServlet {
	/* private BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); */
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		
		/*BlobKey blobKey = new BlobKey(req.getParameter("blob-key"));
		String size = req.getParameter("size");
		if (blobKey != null){
			ImagesService imagesService = ImagesServiceFactory.getImagesService(); 
			String imageURL = imagesService.getServingUrl(blobKey);
			//blobstoreService.serve(blobKey, resp);
			if ("SMALL".equals(size)){
				imageURL = imageURL + "=s32";
			} else if ("MEDIUM".equals(size)){
				imageURL = imageURL + "=s50";
			}
			try {
				req.getRequestDispatcher(imageURL).forward(req, resp);
			} catch (ServletException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}*/
		

	}
}
